<html>
<head>
<script src="jquery-1.4.js" type="text/javascript"></script>
<title>download file</title>
</head>
<body>
<textarea id="imgstring" cols="50" rows="10"></textarea><br />
<input id="imginputstring" type="text" value="" /><br />
<input value="get" onclick="download()" type="button"/>
<script>
function download(){
	var imgs = $("#imgstring").val();
	var imgsingle = $("#imginputstring").val();
	var url ="downloadfile.php";
	var data ={'imgarr':imgs,'imgsingle':imgsingle};
//	$download = $.post('downloadfile.php',{'imgarr':imgs,'imgsingle':imgsingle},function(data){
//		$("#displaymes").html(data);
//	});
	var download = $.ajax({
	  type: 'POST',
	  url: url,
	  data: data,
	  beforeSend:function(){
	  	$("#displaymes").html("start....<br /><img src='images/loading.gif'");
	  },
	  success: function(data){
	  	$("#displaymes").html(data);
	  },
	  
	});

}


</script>
<div id="displaymes"></div>
</body>

</html>